﻿#include <QGuiApplication>
#include <QQuickView>
#include <QUrl>

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

    //构建窗口
    QQuickView *view = new QQuickView();
    //设置程序标题
    view->setTitle(QStringLiteral("qml demo study"));
    //加载qml组件
    view->setSource(QUrl("qrc:/main.qml"));
    //显示
    view->show();

    return app.exec();
}
